<?php
include("connect.php");
header('Content-type: application/json');
if(isset($_POST['pass']) && isset($_POST['user']))
{
    $user = mysql_real_escape_string($_POST['user']);
    $sql = "SELECT idNum FROM users WHERE idNum='$user'";
    //."' AND password= '".mysqli_real_escape($dbc, trim($_POST['password'])."'"
    $result = mysql_query($sql) or die("Could Not make request");
    $row = mysql_fetch_array($result);
    if(!empty($row))
    {
        echo 'true';
    }
    else
    {
        echo 'false';

    }
}
?>